package com.zc.study.designPattern.行为型设计模式.StrategyPattern;

/**
 * 儿童票价折扣类:具体策略类
 */
public class ChildrenDiscount implements Discount{

    @Override
    public double calculate(double price) {
        System.out.println("儿童票:");
        return price - 10;
    }
}
